<?php
namespace app\index\model;

use think\Model;

class Project extends Model
{
	public function Team(){
		return $this->hasOne('team','id','initiator')->field('team_name');
	}
	
	public function getDesAttr($value, $data)
    {
        return htmlspecialchars_decode($data['des']);
    }
	
	public function getDetailAttr($value, $data)
    {
        return htmlspecialchars_decode($data['detail']);
    }
}